home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1810 / 1810.xpi / chrome / showcase.jar / content / showcase.xul < prev    next >
Extensible Markup Language  |  2010-01-17  |  18KB  |  286 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://browser/skin" type="text/css"?>
  4. <?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
  5. <?xml-stylesheet href="chrome://showcase/skin/window.css" type="text/css"?>
  6. <?xml-stylesheet href="chrome://global/skin/findBar.css" type="text/css"?>
  7.  
  8.  
  9. <!DOCTYPE window [
  10. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
  11. %brandDTD;
  12. <!ENTITY % realBrowserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
  13. %realBrowserDTD;
  14. <!ENTITY % browserDTD SYSTEM "chrome://showcase/locale/browser.dtd" >
  15. %browserDTD;
  16. <!ENTITY % showcaseDTD SYSTEM "chrome://showcase/locale/showcase.dtd">
  17. %showcaseDTD;
  18. <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
  19. %globalDTD;
  20. ]>
  21.  
  22. <window title="&showcase.title;"
  23.       windowtype="extension:showcase"
  24.       id="showcaseWindow"
  25.     onload="startup();"
  26.       onunload="unloadShowcase();"
  27.       onfocus="showcaseGainedFocus();"
  28.     buttons="accept"
  29.       class="showcaseWindow"
  30.       xmlns:html="http://www.w3.org/1999/xhtml"
  31.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  32.   <box hidden="true">
  33.     <html:link rel="icon" href="chrome://showcase/skin/icon16.png" type="image/png"/>
  34.   </box>
  35.   <script src="chrome://global/content/nsDragAndDrop.js"/>
  36.   <script src="chrome://global/content/nsTransferable.js"/>
  37.   <script type="application/x-javascript" src="chrome://browser/content/browser.js"/>
  38.   <script type="application/x-javascript" src="showcase.js" />
  39.   
  40.   <script type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"/>
  41.   <script type="application/x-javascript" src="chrome://browser/content/bookmarks/bookmarks.js"/>
  42.   
  43.   <script type="application/x-javascript"
  44.           src="chrome://global/content/globalOverlay.js"/>
  45.   <script type="application/x-javascript"
  46.           src="chrome://browser/content/utilityOverlay.js"/>
  47.   <script type="application/x-javascript" 
  48.           src="chrome://browser/content/places/utils.js"/>
  49.  
  50.   <stringbundleset id="stringbundleset">
  51.     <stringbundle id="bundle_tabbrowser"
  52.         src="chrome://global/locale/tabbrowser.properties"/>
  53.     <stringbundle id="bundle_showcase"
  54.         src="chrome://showcase/locale/showcase.properties"/>
  55.     
  56.   </stringbundleset>
  57.  
  58.   <command id="cmd_close" oncommand="showcaseCloseWindow();"/>
  59.   <command id="cmd_sendlink" oncommand="showcaseSendLink();"/>
  60.   <command id="cmd_savepage" oncommand="try {saveDocument(window.showcasePopupTab.targetTab.contentWindow.document);} catch (e) {alert(e);}"/>
  61.   <command id="cmd_print" oncommand="showcasePrint();"/>
  62.   <command id="cmd_opentab" oncommand="openSelectedTab();"/>
  63.   <command id="cmd_closeother" oncommand="closeOtherTabs();"/>
  64.   <command id="cmd_closetab" oncommand="closeSelectedTabs();"/>
  65.   <command id="cmd_closewindow" oncommand="closeSelectedWindow();"/>
  66.   <command id="cmd_refresh" oncommand="refreshScreen();"/>
  67.   <command id="cmd_fullscreen" oncommand="toggleFullScreen();"/>
  68.   <command id="cmd_addbookmark" oncommand="showcaseAddBookmark();"/>
  69.   <command id="cmd_bookmarkselected" oncommand="showcaseBookmarkSelected();"/>
  70.   <command id="Browser:Back"    oncommand="try { window.showcasePopupTab.targetTab.webNavigation.goBack(); } catch (e) { alert(e); }" disabled="true"/>
  71.   <command id="Browser:Forward" oncommand="try { window.showcasePopupTab.targetTab.webNavigation.goForward(); } catch (e) { alert(e); }" disabled="true"/>
  72.   <command id="Browser:Stop"    oncommand="showcaseBrowserStop();" disabled="true"/>
  73.   <command id="Browser:Reload"  oncommand="if (event.shiftKey) showcaseBrowserReloadSkipCache(); else showcaseBrowserReload()" disabled="true"/>
  74.   <command id="cmdkey_left" oncommand="keyboardLeft(event);"/>
  75.   <command id="cmdkey_right" oncommand="keyboardRight(event);"/>
  76.   <command id="cmdkey_up" oncommand="keyboardUp(event);"/>
  77.   <command id="cmdkey_down" oncommand="keyboardDown(event);"/>
  78.   <command id="cmdkey_enter" oncommand="keyboardEnter();"/>
  79.   <command id="cmdkey_delete" oncommand="keyboardDelete();"/>
  80.   <command id="cmdkey_home" oncommand="keyboardHome(event);"/>
  81.   <command id="cmdkey_end" oncommand="keyboardEnd(event);"/>
  82.   <command id="cmd_options" oncommand="showShowcaseOptions();"/>
  83.   <command id="cmd_selectall" oncommand="selectAll();"/>
  84.   <command id="cmd_find" oncommand="findShortcutAction();"/>
  85.   <command id="View:PageSource" oncommand="BrowserViewSourceOfDocument(window.showcasePopupTab, window.showcasePopupTab.targetTab.contentWindow.document);"/>
  86.   <command id="View:PageInfo" oncommand="BrowserPageInfo(window.showcasePopupTab.targetTab.contentWindow.document);"/>
  87.   <command id="cmd_duplicateselected" oncommand="duplicateInNewWindow();"/>
  88.   <command id="cmd_mergeselected" oncommand="mergeInNewWindow();"/>
  89.   <command id="cmd_showonlycurrent" oncommand="toggleShowOnlyCurrent();"/>
  90.   <command id="cmd_showcasethis" oncommand="showcaseSelectedWindow();"/>
  91.   <command id="cmdkey_zoomin" oncommand="zoomIn();"/>
  92.   <command id="cmdkey_zoomout" oncommand="zoomOut();"/>
  93.  
  94.  
  95.   <popupset id="mainPopupSet">
  96.     <popup id="tabMenu" onpopupshowing="showingTabPopup(event);" onpopupshown="event.stopPropagation();" onpopuphiding="event.stopPropagation();" onpopuphidden="hiddenTabPopup(event);">
  97.       <menuitem id="context-opentab" label="&showcaseOpen;" command="cmd_opentab" hidden="true"/>
  98.       <menuitem id="showcaseMenuItem" label="&showcaseThisCmd.label;" command="cmd_showcasethis" hidden="true"/>
  99.       <menuseparator id="openTabSeparator" hidden="true"/>
  100.       <menuitem id="context-back" label="&backCmd.label;" accesskey="&backCmd.accesskey;" command="Browser:Back" hidden="true"/>
  101.       <menuitem id="context-forward" label="&forwardCmd.label;" accesskey="&forwardCmd.accesskey;" command="Browser:Forward" hidden="true"/>
  102.       <menuitem id="context-reload" label="&reloadCmd.label;" accesskey="&reloadCmd.accesskey;" command="Browser:Reload" hidden="true"/>
  103.       <menuitem id="context-stop" label="&stopCmd.label;" accesskey="&stopCmd.accesskey;" command="Browser:Stop" hidden="true"/>
  104.       <menuseparator id="navigationSeparator" hidden="true"/>
  105.       <menuitem id="duplicateTab" label="&duplicateTabCmd.label;" command="cmd_duplicateselected" hidden="true"/>
  106.       <menuitem id="duplicateSelected" label="&duplicateSelectedCmd.label;" command="cmd_duplicateselected" hidden="true"/>
  107.       <menuitem id="moveTab" label="&moveTabCmd.label;" command="cmd_mergeselected" hidden="true"/>
  108.       <menuitem id="mergeSelected" label="&mergeSelectedCmd.label;" command="cmd_mergeselected" hidden="true"/>
  109.       <menuitem id="context-bookmarkpage" label="&bookmarkPageCmd.label;" accesskey="&bookmarkPageCmd.accesskey;" command="cmd_addbookmark" hidden="true"/>
  110.       <menuitem id="bookmarkSelectedTabs" label="&bookmarkSelectedTabs;" command="cmd_bookmarkselected" hidden="true"/>
  111.       <menuitem id="context-savepage" label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;" command="cmd_savepage" hidden="true"/>
  112.       <menuitem id="context-sendpage" label="&sendPageCmd.label;" accesskey="&sendPageCmd.accesskey;" command="cmd_sendlink" hidden="true"/>
  113.       <menuitem id="print" label="&printCmd.label;" accesskey="&printCmd.accesskey;" command="cmd_print" hidden="true"/>
  114.       <menuitem id="viewSource" label="&viewSourceCmd.label;" command="View:PageSource" hidden="true"/>
  115.       <menuitem id="pageInfo" label="&pageInfoCmd.label;" command="View:PageInfo" hidden="true"/>
  116.       <menuseparator id="toolsSeparator" hidden="true"/>
  117.       <menuitem id="popupCloseOther" label="&closeOtherCmd.label;" command="cmd_closeother" hidden="true"/>
  118.       <menuitem id="popupCloseTab" label="&closeTab.label;" accesskey="&closeTab.accesskey;" command="cmd_closetab" hidden="true"/>
  119.       <menuitem id="popupCloseWindow" label="&closeWindow.label;" command="cmd_closewindow" hidden="true"/>
  120.       <menuitem id="popupClose" label="&closeCmd.label;" accesskey="&closeCmd.accesskey;" command="cmd_closetab" hidden="true"/>
  121.     </popup>
  122.     <tooltip id="thumbnailTooltip" onpopupshowing="return showingThumbnailTooltip(event);" orient="vertical">
  123.       <description id="thumbnailTooltipTitle"/>
  124.       <description id="thumbnailTooltipURL"/>
  125.     </tooltip>
  126.   </popupset>
  127.  
  128.   <keyset id="showcaseKeys">
  129.     <key keycode="VK_ESCAPE" command="cmd_close"/>
  130.     <key keycode="VK_F5" command="cmd_refresh"/>
  131.     <key keycode="VK_F11" command="cmd_fullscreen"/>
  132.     <key keycode="VK_F12" command="cmd_close"/>
  133.     <key key="W" modifiers="accel" command="cmd_close"/>
  134.     <key keycode="VK_F12" modifiers="shift" command="cmd_close"/>
  135.     <key key="&reloadCmd.commandkey;" command="cmd_refresh" modifiers="accel"/>
  136.     <key keycode="VK_LEFT" modifiers="accel,shift,any" command="cmdkey_left"/>
  137.     <key keycode="VK_NUMPAD4" modifiers="accel,shift,any" command="cmdkey_left"/>
  138.     <key keycode="VK_RIGHT" modifiers="accel,shift,any" command="cmdkey_right"/>
  139.     <key keycode="VK_NUMPAD6" modifiers="accel,shift,any" command="cmdkey_right"/>
  140.     <key keycode="VK_UP" modifiers="accel,shift,any" command="cmdkey_up"/>
  141.     <key keycode="VK_NUMPAD8" modifiers="accel,shift,any" command="cmdkey_up"/>
  142.     <key keycode="VK_DOWN" modifiers="accel,shift,any" command="cmdkey_down"/>
  143.     <key keycode="VK_NUMPAD2" modifiers="accel,shift,any" command="cmdkey_down"/>
  144.     <key keycode="VK_ENTER" command="cmdkey_enter"/>
  145.     <key keycode="VK_RETURN" command="cmdkey_enter"/>
  146.     <key keycode="VK_DELETE" command="cmdkey_delete"/>
  147.     <key keycode="VK_HOME" modifiers="accel,shift,any" command="cmdkey_home"/>
  148.     <key keycode="VK_END" modifiers="accel,shift,any" command="cmdkey_end"/>
  149.     <key key="O" modifiers="alt" command="cmd_options"/>
  150.     <key key="A" modifiers="accel" command="cmd_selectall"/>
  151.     <key key="F" modifiers="accel" command="cmd_find"/>
  152.     <key key="U" modifiers="accel" command="cmd_showonlycurrent"/>
  153.     <key key="+" command="cmdkey_zoomin"/>
  154.     <key key="-" command="cmdkey_zoomout"/>
  155.   </keyset>
  156.   <hbox flex="1" id="showcase-content-horizontal">
  157.     <scrollbox flex="1" id="showcase-content-vertical">
  158.       <stack id="showcase-box" flex="1" chromedir="&locale.dir;">
  159.         <box id="emptyMessage" flex="1" hidden="true">
  160.           <description value="&noThumbnails.label;" disabled="true" />
  161.         </box>
  162.         <box id="selection-box" hidden="true" mousethrough="always"/>
  163.         <box id="drop-box" hidden="true" mousethrough="always"/>
  164.         <toolbarbutton id="cursor-left" hidden="true" onmouseover="zoomScrollingLeft = true; window.setTimeout(doZoomScrollLeft, 20);" onmouseout="zoomScrollingLeft = false;"/>
  165.         <toolbarbutton id="cursor-right" hidden="true" onmouseover="zoomScrollingRight = true; window.setTimeout(doZoomScrollRight, 20);" onmouseout="zoomScrollingRight = false;"/>
  166.         <toolbarbutton id="cursor-up" hidden="true" onmouseover="zoomScrollingUp = true; window.setTimeout(doZoomScrollUp, 20);" onmouseout="zoomScrollingUp = false;"/>
  167.         <toolbarbutton id="cursor-down" hidden="true" onmouseover="zoomScrollingDown = true; window.setTimeout(doZoomScrollDown, 20);" onmouseout="zoomScrollingDown = false;"/>
  168.         <toolbarbutton chromedir="&locale.dir;" id="thumb-back" class="thumb-icon" type="menu-button" collapsed="true" top="0" left="0" tooltiptext="&backButton.tooltip;" onmousedown="event.stopPropagation();" onclick="thumbIconCheckMiddleClick(this,event);" oncommand="thumbIconBackCommand(event);">
  169.           <menupopup onpopupshowing="return thumbIconPopulateBackMenu(event);" oncommand="thumbIconGoToHistoryIndex(event); event.preventBubble()" onclick="thumbIconCheckMiddleClick(this,event);"/>
  170.         </toolbarbutton>
  171.         <toolbarbutton chromedir="&locale.dir;" id="thumb-forward" class="thumb-icon" type="menu-button" collapsed="true" top="0" left="0" tooltiptext="&forwardButton.tooltip;" onmousedown="event.stopPropagation();" onclick="thumbIconCheckMiddleClick(this,event);" oncommand="thumbIconForwardCommand(event);">
  172.           <menupopup onpopupshowing="return thumbIconPopulateForwardMenu(event);" oncommand="thumbIconGoToHistoryIndex(event); event.preventBubble()" onclick="thumbIconCheckMiddleClick(this,event);"/>
  173.         </toolbarbutton>
  174.         <toolbarbutton chromedir="&locale.dir;" id="thumb-newforward" class="thumb-icon" collapsed="true" top="0" left="0" tooltiptext="&forwardButton.tooltip;" onmousedown="event.stopPropagation();" onclick="thumbIconCheckMiddleClick(this,event);" oncommand="thumbIconForwardCommand(event);"/>
  175.         <toolbarbutton chromedir="&locale.dir;" id="thumb-newback" class="thumb-icon" collapsed="true" top="0" left="0" tooltiptext="&backButton.tooltip;" onmousedown="event.stopPropagation();" onclick="thumbIconCheckMiddleClick(this,event);" oncommand="thumbIconBackCommand(event);"/>
  176.         <toolbarbutton type="menu" id="thumb-history" class="thumb-icon" collapsed="true" top="0" left="0" tooltiptext="" onmousedown="event.stopPropagation();" oncommand="thumbIconHistoryCommand(event);">
  177.           <menupopup onpopupshowing="thumbIconPopulateHistoryMenu(event);" oncommand="thumbIconGoToHistoryIndex(event); event.preventBubble()" onclick="thumbIconCheckMiddleClick(this,event);"/>
  178.         </toolbarbutton>
  179.         <toolbarbutton id="thumb-reload" class="thumb-icon" collapsed="true" top="0" left="0" tooltiptext="&reloadButton.tooltip;" onmousedown="event.stopPropagation();" oncommand="thumbIconReloadCommand(event);"/>
  180.         <toolbarbutton id="thumb-stop" class="thumb-icon" collapsed="true" top="0" left="0" tooltiptext="&stopButton.tooltip;" onmousedown="event.stopPropagation();" oncommand="thumbIconStopCommand();"/>
  181.       </stack>
  182.     </scrollbox>
  183.   </hbox>
  184.  
  185.     <toolbar id="FindToolbar" hidden="true" align="center">
  186.       <toolbarbutton id="find-closebutton" class="findbar-closebutton" tooltiptext="&findCloseButton.tooltip;"
  187.                      oncommand="toggleFind();"/>
  188.  
  189.       <label control="find-field" value="&find.label;"/>
  190.       <hbox id="find-field-container" class="find-field-container">
  191.         <textbox id="find-field" class="findbar-textbox" oninput="refreshContent();" onkeypress="onFindBarKeyPress(event);" />
  192.       </hbox>
  193.       <menulist flex="0" id="find-type" oncommand="findTypeChanged(this.selectedIndex);" onkeypress="onFindTypeKeyPress(event, this);" onkeydown="findTypeKeyInhibit(event);" onkeyup="findTypeKeyInhibit(event);">
  194.         <menupopup>
  195.           <menuitem label="&find.title;" />
  196.           <menuitem label="&find.location;" />
  197.           <menuitem label="&find.content;" />
  198.           <menuitem label="&find.any;" selected="true"/>
  199.         </menupopup>
  200.       </menulist>
  201.       <toolbarbutton id="find-invert"
  202.                      label="&invert.label;"
  203.                      tooltiptext="&invert.tooltip;"
  204.                      oncommand="setTimeout(refreshContent, 0);"
  205.                      type="checkbox" disabled="true"/>
  206.       <checkbox id="find-case-sensitive" oncommand="toggleSearchCaseSensitivity(this.checked);"
  207.                 label="&caseSensitiveCheckbox.label;" accesskey="&caseSensitiveCheckbox.accesskey;"/>
  208.       <image id="find-status-icon" class="find-status-icon"/>
  209.       <label id="find-status" class="find-status"/>
  210.     </toolbar>
  211.  
  212.   <data id="thumbnail-nolabel-template">
  213.     <vbox class="thumbnail" context="tabMenu">
  214.       <box flex="1" anonid="subCanvasBox" tooltip ="thumbnailTooltip">
  215.         <html:canvas title=" " class="thumbnailCanvas"/>
  216.       </box>
  217.     </vbox>
  218.   </data>
  219.  
  220.   <data id="thumbnail-box-template">
  221.     <vbox class="thumbnail" context="tabMenu" align="stretch">
  222.          <hbox class="showcase-topbox" align="stretch" anonid="topbox">
  223.               <hbox class="showcase-top-left"/>
  224.               <hbox align="center" flex="1" class="showcase-top-middle">
  225.  
  226.           <image class="bookmark-item" validate="never" onerror="this.src=null" anonid="thumbIcon"/>
  227.  
  228.           <label crop="end" flex="1" class="thumbnail-title" anonid="thumbLabel"/>
  229.           <toolbarbutton class="showcase-tab-close-button" anonid="thumbClose" tooltiptext="&closeTab.label;"/>
  230.           </hbox>
  231.           <hbox class="showcase-top-right"/>
  232.       </hbox>
  233.       <stack flex="1">
  234.           <vbox>
  235.               <hbox flex="1">
  236.                       <hbox class="showcase-middle-left"/>
  237.                       <hbox flex="1" class="showcase-middle-middle"/>
  238.                   <hbox class="showcase-middle-right"/>
  239.               </hbox>
  240.                  <hbox align="stretch">
  241.                       <hbox class="showcase-bottom-left"/>
  242.                       <hbox flex="1" class="showcase-bottom-middle"/>
  243.                   <hbox class="showcase-bottom-right"/>
  244.               </hbox>
  245.           </vbox>
  246.         <box anonid="subCanvasBox" tooltip="thumbnailTooltip" class="showcase-container">
  247.           <html:canvas title=" " class="thumbnailCanvas"/>
  248.         </box>
  249.     </stack>
  250.     </vbox>
  251.   </data>
  252.  
  253.   <data id="thumbnail-plain-template">
  254.     <vbox class="thumbnail" context="tabMenu" align="stretch">
  255.       <caption class="thumbnail-label" align="center" pack="center" style="margin:0;">
  256.  
  257.         <image class="bookmark-item" validate="never" onerror="this.src=null" anonid="thumbIcon"/>
  258.  
  259.         <label crop="end" class="thumbnail-title" anonid="thumbLabel"/>
  260.         <separator flex="10000" class="groove"/>
  261.       </caption>
  262.       <box flex="1" anonid="subCanvasBox" tooltip="thumbnailTooltip">
  263.         <html:canvas title=" " class="thumbnailCanvas"/>
  264.       </box>
  265.     </vbox>
  266.   </data>
  267.  
  268.   <data id="thumbnail-plainclose-template">
  269.     <vbox class="thumbnail" context="tabMenu" align="stretch">
  270.       <caption class="thumbnail-label" align="center" pack="center" style="margin:0;">
  271.  
  272.         <image class="bookmark-item" validate="never" onerror="this.src=null" anonid="thumbIcon"/>
  273.  
  274.         <label crop="end" class="thumbnail-title" anonid="thumbLabel"/>
  275.         <separator flex="10000" class="groove"/>
  276.  
  277.         <image class="tabs-closebutton" anonid="thumbClose" tooltiptext="&closeTab.label;"/>
  278.  
  279.       </caption>
  280.       <box flex="1" anonid="subCanvasBox" tooltip="thumbnailTooltip">
  281.         <html:canvas title=" " class="thumbnailCanvas"/>
  282.       </box>
  283.     </vbox>
  284.   </data>
  285.  
  286. </window>